package com.hebeu.device.dao;

import com.hebeu.device.pojo.DUser;
import com.hebeu.device.pojo.DUserExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DUserMapper {
    long countByExample(DUserExample example);

    int deleteByExample(DUserExample example);

    int deleteByPrimaryKey(String uId);

    int insert(DUser record);

    int insertSelective(DUser record);

    List<DUser> selectByExample(DUserExample example);
    //通过id查询用户
    DUser selectByPrimaryKey(String uId);
    //通过角色查询用户
    DUser selectByPrimaryKey(int uType);
    //
    int updateByExampleSelective(@Param("record") DUser record, @Param("example") DUserExample example);

    int updateByExample(@Param("record") DUser record, @Param("example") DUserExample example);
    //    修改密码用到
    int updateByPrimaryKeySelective(DUser record);

    int updateByPrimaryKey(DUser record);
}